gtkcomposetable.c: Fix build on non-X11
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 21 Oct 2022 04:15:29 +0000 (12:15 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 21 Oct 2022 04:29:19 +0000 (12:29 +0800)
commit611d14108d5658bf4274116e42b2a5c3ddfb710c
treefd85e1ab9a9b3d6d6523e697231bfd2cf46981c0
parent45491728257561e0762619f16eafb2f3aad5b826
gtkcomposetable.c: Fix build on non-X11

The build breaks with a C4013 warning/error on Visual Studio because we don't
have a prototype defined for _gtk_get_datadir(), so include gtkprivate.h.

The vs2017-x64 CI did not catch this error because it is building GLib as a
fallback subproject, causing the msvc_recommended_pragmas.h header not to be
found, which is used to detect problems like this.
gtk/gtkcomposetable.c